import axios from 'axios';
export const getListData=(data)=>{
    return{
        type: 'GETLISTS',
        data
    }
}
export function fetchList(){
    return dispatch=>{
        var url="http://47.105.193.59:8080/zhuiying/getCollections?"+"Uid=1";
        return axios({
            url   : url,
            method: 'get'
        }).then(res=>{
            dispatch(getListData(res.data));
        })
    }
}
